package com.example.demo.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Generated;
import org.springframework.boot.autoconfigure.web.WebProperties;
import org.springframework.data.annotation.Id;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

public class Student {
    private Integer clockId;
    private Integer sid;
    private String name;
    private String college;
    private String year;
    private String major;
    private String healthy;
    private String temperature;
    private String ifGoOut;

    //对时间进行格式化
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date updateTime;

    private String workState;
    private String remark;
    private Integer state;
    private String username;
    private String password;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCollege() {
        return college;
    }

    public void setCollege(String college) {
        this.college = college;
    }

    public String getHealthy() {
        return healthy;
    }

    public void setHealthy(String healthy) {
        this.healthy = healthy;
    }

    public String getTemperature() {
        return temperature;
    }

    public void setTemperature(String temperature) {
        this.temperature = temperature;
    }

    public String getIfGoOut() {
        return ifGoOut;
    }

    public void setIfGoOut(String ifGoOut) {
        this.ifGoOut = ifGoOut;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getWorkState() {
        return workState;
    }

    public void setWorkState(String workState) {
        this.workState = workState;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public Integer getSid() {
        return sid;
    }

    public void setSid(Integer sid) {
        this.sid = sid;
    }

    public String getYear() {
        return year;
    }

    public void setYear(String year) {
        this.year = year;
    }

    public String getMajor() {
        return major;
    }

    public void setMajor(String major) {
        this.major = major;
    }

    public Integer getClockId() {
        return clockId;
    }

    public void setClockId(Integer clockId) {
        this.clockId = clockId;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    @Override
    public String toString() {
        return "Student{" +
                "clockId=" + clockId +
                ", sid=" + sid +
                ", name='" + name + '\'' +
                ", college='" + college + '\'' +
                ", year='" + year + '\'' +
                ", major='" + major + '\'' +
                ", healthy='" + healthy + '\'' +
                ", temperature='" + temperature + '\'' +
                ", ifGoOut='" + ifGoOut + '\'' +
                ", updateTime=" + updateTime +
                ", workState='" + workState + '\'' +
                ", remark='" + remark + '\'' +
                ", state=" + state +
                ", username='" + username + '\'' +
                '}';
    }
}
